package oboe.math
{
	import oboe.core.RenderSettings;

	public class DynamicFrame extends Frame
	{
		protected var tris:Vector.<Triangle3D>;
		protected var needsZSort:Boolean;
		
		public function DynamicFrame( triangleCount:int )
		{
			this.needsZSort = true;
			if( triangleCount )
			{
				tris = new Vector.<Triangle3D>( triangleCount, true );
				for( var i:int=0; i<triangleCount; ++i )
				{
					var tri:Triangle3D = new Triangle3D();
					tris[i] = tri;
				}
			}
			super( null, null, null );
		}
	}
}